package com.zmc.admin.application;

import com.zmc.common.utils.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author：zmc
 * @Date：2024/10/10 12:36
 */
public interface CommonService {

    public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request);

    public R uploadFile(MultipartFile file) throws Exception;

    public R uploadFiles(List<MultipartFile> files) throws Exception;

    public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) throws Exception;
}
